#ifndef __ROOMLAYER_H__
#define __ROOMLAYER_H__
#include "../imilibs/IMILayer.h"
#include "../imilibs/IMISprite.h"
#include "../imilibs/IMILoad.h"
#include "../data/IMIData.h"
#include "../imilibs/IMIButton.h"
#include "../actions/CCallFuncDelay.h"
#include "../imilibs/IMIEventData.h"
#include "../EventType.h"
#include "../imilibs/IMIBasicBg.h"

//***********************
//RoomLayer
//***********************
class RoomLayer:public IMILayer
{
public:
	//
	RoomLayer(){};
	virtual ~RoomLayer();
	static RoomLayer *create(void);
	void onEnter();
	void onExit();
	bool init();

	void uiInit();
	void setAllPosition();

	//*********************************
	void setHeadColor(int type);
	int m_headTime;
	void setHeadTime(int time);
	void selfTimeHandler(CCObject * obj);
	//*********************************

private:
	CCSprite * m_bg;

	IMISprite * m_talkBtn;
	IMISprite * m_moreBtn;

	CCSprite * nameIcon;
	CCSprite * moneytIcon;
	CCTextFieldTTF * m_nameTxt;
	CCTextFieldTTF * m_moneyTxt;

	CCSprite * m_headBg;
	CCLabelBMFont * m_selfTime;
};

#endif // __ROOMLAYER_H__